/* 
  隐患中心
*/
import request from '@/utils/request'

// 获取隐患列表-全部/待处理/已处理
export function apiHiddenTrobleList(data) {
  return request({
    url: '/irrigation/irrigationTrouble/pageH5',
    method: 'post',
    data
  })
}

// 获取隐患列表-我的上报
export function apiHiddenTrobleMyList(data) {
  return request({
    url: '/irrigation/irrigationTrouble/myCreate',
    method: 'post',
    data
  })
}

// 隐患上报
export function apiHiddenTrobleSave(data) {
  return request({
    url: '/irrigation/irrigationTrouble/save',
    method: 'post',
    data
  })
}

// 隐患信息明细
export function apiHiddenTrobleDetail(data) {
  return request({
    url: '/irrigation/irrigationTrouble/detail',
    method: 'post',
    data
  })
}

// 隐患处理后信息明细
export function apiHiddenTrobleSumbitDetail(data) {
  return request({
    url: '/irrigation/irrigationTrouble/submitDetail',
    method: 'post',
    data
  })
}

// 隐患 处理
export function apiHiddenTrobleSubmit(data) {
  return request({
    url: '/irrigation/irrigationTrouble/submit',
    method: 'post',
    data
  })
}

// 隐患 指派
export function apiHiddenTrobleAssiged(data) {
  return request({
    url: '/irrigation/irrigationTrouble/assigned',
    method: 'post',
    data
  })
}
// 隐患 发起维修
export function apiHiddenTrobleRepair(data) {
  return request({
    url: '/irrigation/irrigationTrouble/repair',
    method: 'post',
    data
  })
}
// 隐患 发起养护
export function apiHiddenTrobleMainTain(data) {
  return request({
    url: '/irrigation/irrigationTrouble/maintain',
    method: 'post',
    data
  })
}

// 隐患 审核
export function apiHiddenTrobleAudit(data) {
  return request({
    url: '/irrigation/irrigationTrouble/audit',
    method: 'post',
    data
  })
}